/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package comparators;

import java.util.Comparator;
import structure.NodeDependency;

/**
 *
 * @author Gary Furlong
 */
public class SortNodeDepsByDep implements Comparator<NodeDependency>{

    public int compare(NodeDependency o1, NodeDependency o2) {
        if (o1.getDependency() > o2.getDependency()){
            return -1;
        }
        else {
            return 1;
        }
    }

}
